import {request} from "./request";
export function getRolesList(){
    return request({
        method:'get',
        url:'/roles'
    })
}
export function delRolesList(id){
    return request({
        method:'delete',
        url:`/roles/${id}`
    })
}
//角色授权
export function setRights(roleId,params){
    return request({
        method:'post',
        url:`/roles/${roleId}/rights`,
        params:params
           
    })
}
